package com.qf.controller;

import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户controller接口
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    /**
     * 账户2加500元, 测试controller接口
     * @return
     */
    @GetMapping("/transfer")
    public String transferMoney(){
        userService.transferMoney();
        return "SUCCESS";
    }

}